#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);setFixedSize(600,300);
    b1.setParent(this);
    b1.setText("关闭");
    b1.move(400,200);
    b3.setParent(this);
    b3.setText("开始");
    b3.move(100,200);


    connect(&b3,&QPushButton::released,this,&Widget::change);
    connect(&b1,&QPushButton::pressed,this,&Widget::close);
}

Widget::~Widget()
{
    delete ui;
}
void Widget::change (){
    w.show();
    this->hide();
}

